from flask import Flask, g
from flask import request
from flask import Blueprint, render_template
from flask import Blueprint, current_app
import types
from database import *
import os
import time
import stat
import hashlib
import json
import config
import re
from werkzeug.wrappers import BaseResponse as Response
import osa

LOG = config.getlogger()


@syncpoint.route('/')
def send_sms(phone_number=None, content=None):
    try:
        if not isinstance(content, dict):
            abort(400)
        if set(['time', 'event', 'message']) != set(content.keys):
            abort(400)
    except:
        abort(400)
